<?php
class NavigationWidget extends Widget
{
    public function render($data)
    {
        if (S('Navigation')) {
            $Navigation	=	S('Navigation');
        } else {
            $Navigation = D("Navigation")->select();
            S('Navigation', $Navigation);
        }
        $data['navigation'] = $Navigation;
        $content = $this->renderFile('navigation',$data);
        return $content;

    }
}
